# -*- coding: utf-8 -*-


DEBUG = True

# Full mongodb URI: 'addr:port'
HOST = 'localhost:27017'

# Set AUTH to True if target instance needs authentication, otherwise set AUTH
# to False and comment the USER and PWD lines.
AUTH = False
# USER = ''
# PWD = ''


DEBUG_IP = '0.0.0.0'
DEBUG_PORT = 5001

NONDEBUG_IP = 'localhost'
NONDEBUG_PORT = 5001


# OSS INFO for Aliyun
OSS_HOST = 'oss-cn-hangzhou.aliyuncs.com'
OSS_INTERNAL_HOST = 'oss-cn-hangzhou-internal.aliyuncs.com'
# OSS_APP_ID = 'LF9bMt9KgnbuWsW4'
# OSS_APP_KEY = 'FjCmwkgC4DtexbhRApjWNgbZfdTVaQ'
OSS_APP_ID = 'RZbnpKOlID2Tml0r'
OSS_APP_KEY = 'OtHy3yXWY7f6svs6JIscqT8D0IunqH'
OSS_BUCKET = 'msqdata'
OSS_VIDEO_BUCKET = 'msq-video'
OSS_URL_TIME_OUT = 7200

# Weibo config
CLIENT_ID = '3394076065'
CLIENT_SECRET = 'db1a0e68e1df14f50102f897d2af215d'
REDIRECT_URL = 'http://120.26.192.176/msq/api/user/weibo/auth'

# Set default avatar url
DEFAULT_USER_AVATAR_URL = 'http://msqdata.oss-cn-hangzhou.aliyuncs.com/default-avatar.png'
DEFAULT_STUDIO_AVATAR_URL = 'http://msqdata.oss-cn-hangzhou.aliyuncs.com/default-avatar.png'


B_WEB_URL = 'http://www.arthelpful.com'

